package appli.calcul;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class CalculatriceActivity extends Activity {

	Button suivant;



	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);


		final Coord coor = new Coord("0","0");

		suivant = (Button) this.findViewById(R.id.nom);
		final Activity act = this;
		 
		suivant.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent page = new Intent(act, Map.class);
				page.putExtra("coord", coor);
				act.startActivity(page);
			}
		});
		


	}	
}